﻿#region Using declarations
using System;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Indicator;
using NinjaTrader.Strategy;
#endregion

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
    partial class Strategy
    {
        public int EL_Category()
        {
            switch (Instrument.MasterInstrument.InstrumentType..ToString())
            {
                case "Future":
                    return 0;
                case "Option":
                    return 1;
                case "Stock":
                    return 2;
                case "Index":
                    return 4;
                case "Currency":
                    return 5;
                default:
                    return 999;
            }
        }

    }
}
